﻿@model IEnumerable<Site.Model.Entities.Post>
@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>PostOID
        </th>
        <th>Post1
        </th>
        <th>PostDate
        </th>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.PostOID)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Post1)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.PostDate)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.PostOID }) |
            @Html.ActionLink("Details", "Details", new { id = item.PostOID }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.PostOID })
            </td>
        </tr>
    }

</table>
